Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: Unsupported trigger and search in the background or embedded agent
Feedback Type: Question
Product Area: Domino Designer on Eclipse (DDE)
Technical Area: Application Development
Platform: Not Applicable
Release: 8.5.2
Reproducible: Not applicable

While not new to Java, I'm new to Java Agent development. I simply want to make a "Hello World" agent that can be run via a web browser - using a URL like:

https://myurl.com/testapp.nsf/helloworld?openagent

...and have it print "Hello World!" to the browser. I have created a simple Agent that looks like:

import lotus.domino.*;

public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
System.out.println("Hello World!");
} catch(Exception e) {
e.printStackTrace();
}
}
}

...but if I try to run this in the browser I always get:

Error 500
HTTP Web Server: Lotus Notes Exception - Unsupported trigger and search in the background or embedded agent

Can anyone please help? Many thanks in advance!

Cheers,

Alex

PS - Apologies if this is not the right forum, but this seemed as good as any.


Feedback number WEBB8L3P94 created by ~Delores Umjipyverikle on 08/25/2011

Status: Open
Comments:

Unsupported trigger and search in t... (~Delores Umjipy... 25.Aug.11)
. . Mystery Solved (~Delores Umjipy... 25.Aug.11)
. . . . Thanks for sharing. (~Vijay Quetgero... 2.Feb.12)
. . . . Trigger or scope ? (~Manny Chufreev... 20.Nov.12)
. . . . thanks (~Zelda Ekrether... 30.Jun.16)
. . . . More thanks! (~Joseph Zekpone... 15.Sep.16)
. . Why does it work with target "All D... (~Vanessa Ekgero... 3.May.17)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS